package com.yaodian100.ec.payment.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_THIRD_PARTY_TRANSFER_LOG")
public class ThirdPartyTransferLog extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2180226210398869434L;

	/**
	 * 系統流水號
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_thirdpartytransfer_log")
	@SequenceGenerator(name = "seq_ec_thirdpartytransfer_log", sequenceName = "seq_ec_thirdpartytransfer_log")
	@Column(name = "id", length = 20, nullable = false)
	private String id;

	@Column(name = "order_id", length = 13, nullable = false)
	private String orderId;

	/**
	 * 第三方付款商
	 */
	@Column(name = "tid", length = 16)
	private String tid;

	/**
	 * 送出日
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "send_date")
	private Date sendDt;

	/**
	 * 金额
	 */
	@Column(name = "amount", nullable = false, columnDefinition = "numeric(10,2)")
	private BigDecimal amount;

	/**
	 * 来源ip
	 */
	@Column(name = "src", length = 20, nullable = false)
	private String src;

	@Column(name = "bank_code", length = 20)
	private String bankCode;

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the orderId
	 */
	public String getOrderId() {
		return orderId;
	}

	/**
	 * @param orderId the orderId to set
	 */
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	/**
	 * @return the tid
	 */
	public String getTid() {
		return tid;
	}

	/**
	 * @param tid the tid to set
	 */
	public void setTid(String tid) {
		this.tid = tid;
	}

	/**
	 * @return the sendDt
	 */
	public Date getSendDt() {
		return sendDt;
	}

	/**
	 * @param sendDt the sendDt to set
	 */
	public void setSendDt(Date sendDt) {
		this.sendDt = sendDt;
	}

	/**
	 * @return the amount
	 */
	public BigDecimal getAmount() {
		return amount;
	}

	/**
	 * @param amount the amount to set
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	/**
	 * @return the src
	 */
	public String getSrc() {
		return src;
	}

	/**
	 * @param src the src to set
	 */
	public void setSrc(String src) {
		this.src = src;
	}

	/**
	 * @return the bankCode
	 */
	public String getBankCode() {
		return bankCode;
	}

	/**
	 * @param bankCode the bankCode to set
	 */
	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

}
